import React from 'react'
import { View, Button } from 'react-native'
import ImagePicker from 'react-native-image-crop-picker';

let imageList = []
export default class PhotoChoose extends React.Component {
  addImg() {
    ImagePicker.openPicker({ multiple: 4 }).then(Image=>{
      console.log(Image)
    })
  }
  render() {
    return (
      <View>
        <Button title={'abc'} onPress={()=>{
          ImagePicker.openPicker({
            width: 300,
            height: 400,
            cropping: true
          }).then(image => {
            console.log(image);
          });
        }}></Button>
      </View>
    )
  }
}